package com.yang.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.yang.model.Role;
import com.yang.model.User;

@Mapper
public interface RoleDao {

	@Select("select * from role")
	List<Role> getAllRoles();
    @Select("select roleId  from user_role where userId = #{userId}")
	List<Integer> getCurrentRoles(Integer userId);
    
	List<Role> queryRoles(Map<String, Object> map);
	
	List<Role> queryAllRoles(Map<String, Object> map);

}
